﻿<Window x:Class="CrmLinkBuddyWpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Link Buddy for Dynamics CRM 2015" Height="509" Width="497" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid Margin="1,1,1,-2">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="131*"/>
            <ColumnDefinition Width="0*"/>
            <ColumnDefinition Width="356*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <Button x:Name="btnSignIn" Content="Login to CRM" HorizontalAlignment="Left" Margin="44,24,0,0" VerticalAlignment="Top" Width="149" Click="btnSignIn_Click" Height="32" Grid.ColumnSpan="3" ToolTip="Connect to Dynamics CRM (online or on-premises)"/>
        <Button x:Name="btnGenerateHyperlinks" Content="Generate Hyperlinks" HorizontalAlignment="Left" Margin="144,25,0,0" VerticalAlignment="Top" Width="164" Grid.Column="2" IsEnabled="False" Click="btnGenerateHyperlinks_Click" Height="31" ToolTip="Generate CRM entity record hyperlinks; load results in new browser window."/>
        <Button x:Name="btnExit" Content="Exit" HorizontalAlignment="Left" Margin="240,440,0,0" VerticalAlignment="Top" Width="89" Click="btnExit_Click" Height="20" Grid.Column="2"/>
        <TextBox x:Name="txtText" Grid.ColumnSpan="3" HorizontalAlignment="Left" Height="300" Margin="24,96,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="432" ToolTip="Paste text that contains one or more CRM entity record GUIDs" VerticalScrollBarVisibility="Auto" AcceptsReturn="True"/>
        <Label x:Name="lblHeading" Content="Text (with GUIDs) to convert to CRM hyperlinks:" HorizontalAlignment="Left" Margin="20,70,0,0" VerticalAlignment="Top" Grid.ColumnSpan="3" Width="266"/>
        <Label x:Name="lblCrmConnectionStatus" Content="" HorizontalAlignment="Left" Margin="10,437,0,0" VerticalAlignment="Top" Grid.ColumnSpan="3" Width="353"/>
        <ProgressBar x:Name="pbProgress" Grid.ColumnSpan="3" HorizontalAlignment="Left" Height="16" Margin="24,401,0,0" VerticalAlignment="Top" Width="432"/>

    </Grid>
</Window>
